package io.lvdaxian.middleware.db.router.test.interfaces.dto;

public class UserInfo {
  
  //code、info可以统一定义一个类
  private String code;
  private String info;
  
  private String name;
  private Integer age;
  private String address;
  
  public UserInfo() {
  
  }
  
  public UserInfo(String code, String info) {
    this.code = code;
    this.info = info;
  }
  
  public UserInfo(String name, Integer age, String address) {
    this.code = "0000";
    this.info = "success";
    this.name = name;
    this.age = age;
    this.address = address;
  }
  
  public String getCode() {
    return code;
  }
  
  public void setCode(String code) {
    this.code = code;
  }
  
  public String getInfo() {
    return info;
  }
  
  public void setInfo(String info) {
    this.info = info;
  }
  
  public String getName() {
    return name;
  }
  
  public void setName(String name) {
    this.name = name;
  }
  
  public Integer getAge() {
    return age;
  }
  
  public void setAge(Integer age) {
    this.age = age;
  }
  
  public String getAddress() {
    return address;
  }
  
  public void setAddress(String address) {
    this.address = address;
  }
}
